Skip to content

Bft synch prune#678

Merged
tock-ibm merged 2 commits intohyperledger:mainfrom
tock-ibm:bft-synch-prune
Mar 16, 2026
Merged

Bft synch prune#678
tock-ibm merged 2 commits intohyperledger:mainfrom
tock-ibm:bft-synch-prune

Conversation

@tock-ibm
Copy link
Contributor

@tock-ibm tock-ibm commented Mar 12, 2026

#35

Builds on top of #675

Adds a prune requests method to be given to the synchronizer

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR starts wiring in the new BFT synchronizer path alongside the existing “simple” synchronizer, including adding a callback to prune committed requests from the SmartBFT mempool.

Changes:

  • Adds BFT synchronizer factory/state fields to Consensus and a new PruneRequestsFromMemPool hook for synchronizer-driven pruning.
  • Creates (but does not yet replace usage with) a BFT synchronizer instance during consensus construction.
  • Adds TODO notes around temporary append-listener usage and planned synchronizer migration.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
node/ledger/consensus_ledger.go Adds a TODO note indicating the append listener registration is temporary until BFT synchronizer migration.
node/consensus/consensus.go Extends Consensus with BFT synchronizer plumbing and adds PruneRequestsFromMemPool for synchronizer-driven mempool pruning.
node/consensus/consensus_builder.go Wires a BFT synchronizer factory and attempts to create a BFT synchronizer during CreateConsensus, while still using the existing synchronizer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tock-ibm tock-ibm force-pushed the bft-synch-prune branch 2 times, most recently from 5cd1e50 to 5e266df Compare March 15, 2026 14:29
Signed-off-by: Yoav Tock <tock@il.ibm.com>
@tock-ibm tock-ibm merged commit 23b8a68 into hyperledger:main Mar 16, 2026
7 checks passed
@tock-ibm tock-ibm deleted the bft-synch-prune branch March 16, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants